package com.term.util.converter.type;

import com.term.util.converter.IConverter;
import org.springframework.stereotype.Component;

import java.math.BigInteger;

/**
 * Created by chenGang on 2017/1/11.
 */
@Component("BigInteger_Integer_SET_VALUE")
public class BigInteger2IntegerConverter implements IConverter<BigInteger,Integer> {
    @Override
    public Integer convert(BigInteger value, Object... obj) {
        BigInteger tempValue = (BigInteger) value;
        return Integer.valueOf(tempValue.intValue());
    }
}
